/**
 * @Author: Bobby
 * @Date: 2022-02-15 13:14:17
 * @LastEditTime: 2022-03-15 09:51:14
 * @LastEditors: Bobby
 * @Description:
 * @FilePath: \wms-v2\src\ve\common\components\baseComs\form\uiButton.js
 * @CIMC-V2
 */
import { exInput, exIcon, exSizeSelect, exSelect, exSwitch, exInputKeyboardShortcut, exSetChartColor } from '@ve/common/components/extension'
export default {
  VERSION: '20220408',
  type: 'uiButton',
  name: '按钮',
  icon: 'radio-button-line',
  svg: 'anniu',
  //数据别名
  // dataName: 'uiButton_data',
  //数据集合 表单 列表等等
  data: {
    requestData: {},
  },
  isChecked: true,
  extension: {
    value: exInput('名称', '按钮'),
    size: exSizeSelect('尺寸', 'mini'),
    icon: exIcon('图标选择器', ''),
    type: exSelect('颜色类型', '', [
      { value: '', label: '默认' },
      { value: 'text', label: '文字' },
      { value: 'primary', label: '蓝色' },
      { value: 'success', label: '绿色' },
      { value: 'info', label: '灰色' },
      { value: 'warning', label: '黄色' },
      { value: 'danger', label: '红色' },
    ]),
    textColor: { ...exSetChartColor('文字颜色', ''), isSuperior: true },
    round: exSwitch('圆角', false),
    circle: exSwitch('圆形', false),
    plain: exSwitch('朴素按钮', false),
    paddingTop: { ...exInput('上内边距', '2px'), isSuperior: true },
    paddingRight: { ...exInput('右内边距', '10px'), isSuperior: true },
    paddingBottom: { ...exInput('下内边距', '2px'), isSuperior: true },
    paddingLeft: { ...exInput('左内边距', '10px'), isSuperior: true },
    disabled: exSwitch('禁用', false),
    hidden: exSwitch('隐藏', false),
    enterSelect: {
      type: 'exModuleSelect',
      name: '回车选中',
      value: [],
      hasCheckbox: false,
      treeData: '$getPageModules',
      isSuperior: true,
    },
    keyboardShortcut: { ...exInputKeyboardShortcut('快捷键触发', [], '快捷键格式 F1 或者 Ctrl+F1'), isSuperior: true },
    // exSelect('快捷键触发', '', [
    //   { value: '', label: '无' },
    //   { value: 'F1', label: 'F1' },
    //   { value: 'F2', label: 'F2' },
    //   { value: 'F3', label: 'F3' },
    //   { value: 'F4', label: 'F4' },
    //   { value: 'F5', label: 'F5' },
    //   { value: 'F6', label: 'F6' },
    //   { value: 'F7', label: 'F7' },
    //   { value: 'F8', label: 'F8' },
    //   { value: 'F9', label: 'F9' },
    //   { value: 'F10', label: 'F10' },
    //   { value: 'F11', label: 'F11' },
    //   { value: 'F12', label: 'F12' },
    // ]),
  },
  //交互
  interaction: [],
  //条件、逻辑指令
  logicInstruction: [],
}
